package flextv.main.logic {

import flextv.data.IPersistenceService;
import flextv.main.logic.download.IDownloadService;

[Bindable]
public class MainServices {
	
	public var downloadService: IDownloadService;
	
	public var persistenceService: IPersistenceService;
	
	
	
	private static var INSTANCE: MainServices; 
	
	public function MainServices(singletonEnforcer: SingletonEnforcer) { }
	
	public static function getInstance(): MainServices {
		if(INSTANCE == null) { INSTANCE = new MainServices(new SingletonEnforcer()); }
		return INSTANCE;
	}
	
	public static function get instance(): MainServices {
		if(INSTANCE == null) { INSTANCE = new MainServices(new SingletonEnforcer()); }
		return INSTANCE;
	}

}
}

class SingletonEnforcer { }